import {
	http
} from '../request/index.js';

// 老师列表
export const teacherLists = (params) => {
	return http.get('/api/fitness.teacher/list', params);
}

// 老师分类
export const teacher_category = (params) => {
	return http.get('/api/fitness.teacher/teacher_category', params);
}

//老师所属国家
export const teacherCountry = (params) => {
	return http.get('/api/fitness.teacher/teacherCountry', params);
}

// 老师详情
export const teacher_info = (params) => {
	return http.get('/api/fitness.teacher/info', params);
}

// 问卷答题
export const getUserTestPaper = (params) => {
	return http.get('/api/user_test_paper/getUserTestPaper', params);
}

// 收藏/取消收藏老师
export const collectTeacher = (params) => {
	return http.get('/api/fitness.teacher/collectTeacher', params);
}

// 我的收藏老师列表
export const collectTeacherList = (params) => {
	return http.get('/api/fitness.teacher/collectTeacherList', params);
}

// 老师详情-评论列表
export const teacherCommentList = (params) => {
	return http.get('/api/fitness.teacher/teacherCommentList', params);
}

// 问卷提交
export const addUserTestPaper = (params) => {
	return http.post('/api/user_test_paper/addUserTestPaper', params);
}

// 购买课程
export const Teacherpay = (params) => {
	return http.post('/api/fitness_course_package/pay', params);
}

// 购买固定课程
export const fitness_course_add = (params) => {
	console.log(22222)
		console.log(params)
	return http.post('/api/fitness_course_reservation_order/add', params);
}

// 获取js_dk
export const getJsSdk = (params) => {
	return http.get('/api/user/getJsSdk', params);
}

// 评价
export const addComment = (params) => {
	return http.post('/api/fitness_teacher_comment/addComment', params);
}
// 评价点赞
export const commentLike = (params) => {
	return http.post('/api/fitness.teacher/changeLikeStatus', params);
}


// 查看报告
export const reportInfo = (params) => {
	return http.post('/api/fitness_stu_course_comment/reportInfo', params);
}

// 报告列表
export const getReportList = (params) => {
	return http.post('/api/fitness_stu_course_comment/getReportList', params);
}
